﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="newsView.aspx.cs" Inherits="newsView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSourceNewsView">
        <ItemTemplate>
            
                
                    <asp:Label ID="LblTitle" runat="server" Text='<%# Eval("newsTitle") %>' Font-Size="Larger"></asp:Label>
            <p class="date">
                <img src="images/more.gif" alt="" />
                <asp:Label ID="LblAuhtor" runat="server" Text='<%# Eval("c_Name") %>'></asp:Label> <img src="images/more.gif" alt="" />
                <asp:Label ID="LblClassname" runat="server" Text='<%# Eval("className") %>'></asp:Label>
                <img src="images/timeicon.gif" alt="" />
                <asp:Label ID="Label2" runat="server" Text='<%# Eval("newsTime") %>'></asp:Label></p>
            <p>
                <asp:Label ID="LblContent" runat="server" Text='<%# Eval("newsContent") %>'></asp:Label></p>
        </ItemTemplate>
    </asp:Repeater>
    <asp:SqlDataSource ID="SqlDataSourceNewsView" runat="server" ConnectionString="<%$ ConnectionStrings:qynbControlSystemConnectionString %>"
        SelectCommand="SELECT newsID, newsTitle, c_Name,newsContent, newsAuthor, newsClass,className, newsRemark, newsTime FROM news inner join cusInfo on cusInfo.cusID=newsAuthor  inner join classInfo on classInfo.classID=news.newsClass  WHERE (newsID = @newsID)">
        <SelectParameters>
            <asp:QueryStringParameter Name="newsID" QueryStringField="newsID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
